/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 */
import React from 'react';
import {useMappedState} from 'redux-react-hook';
import LoginView from './src/navigation/login';
import RootNavigator from './src/navigation/navigator';
import {NavigationContainer} from '@react-navigation/native';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function App(props: any): React.JSX.Element {
  const isLogin = useMappedState(state => state.isLogin);
  return (
    <NavigationContainer>
      {isLogin ? <RootNavigator /> : <LoginView />}
    </NavigationContainer>
  );
}
export default App;
